
/**
 * Handles the parameters to the ServerCommands.
 * @author bjorn, kristian
 * 
 */
public class CommandParameter {
	
	private String name;
	private Integer value;
	
	/**
	 * Creates a new CommandParameter with name parName and value parValue.
	 * @param parName
	 * @param parValue
	 */
	public CommandParameter(String parName, Integer parValue) {
		name = parName;
		value = parValue;
	}
	
	/**
	 * Returns the name of the CommandParameter.
	 * @return
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Set the name of the CommandParameter to newName.
	 * @param newName
	 */
	public void setName(String newName) {
		name = newName;
	}
	
	/**
	 * Returns the value of the CommandParameter.
	 * @return
	 */
	public Integer getValue() {
		return value;
	}
	
	/**
	 * Sets the value of the CommandParameter to newValue.
	 * @param newValue
	 */
	public void setValue(Integer newValue) {
		value = newValue;
	}


}
